package activities;

import inno.FileShareActivity;
import pkg.inno.fileshare.R;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class MenuItemView extends Activity 
{
	final Context context = this;
	TextView _textBox;
	Button _btnBack;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu_item_view);
		
		Bundle bundleObj=getIntent().getBundleExtra("menuBundles");
		
		_textBox=(TextView)findViewById(R.id.textView1);
		_textBox.setText(bundleObj.getString("subMenuName")+" "+bundleObj.getString("subMenuId"));
		_btnBack=(Button)findViewById(R.id.btnBack);
		
		_btnBack.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(getApplicationContext(), FileShareActivity.class );
				startActivityForResult(i, 0);
			}
		});
	}
	

}
